/// @description Insert description here
// You can write your code in this editor
u_pos = shader_get_uniform(shLight, "u_pos");
u_pos2 = shader_get_uniform(shShadow, "u_pos");
u_zz = shader_get_uniform(shLight, "zz");
u_str = shader_get_uniform(shLight, "u_str");
u_dir = shader_get_uniform(shLight, "u_dir");
u_fov = shader_get_uniform(shLight, "u_fov");

application_surface_draw_enable(false);
vertex_format_begin();
vertex_format_add_position_3d();
vf = vertex_format_end();
vb = vertex_create_buffer();
shSurface = noone;
function BGbegin()
{
	gpu_set_colorwriteenable(1, 1, 1, 0);	
}
function BGend()
{
	gpu_set_colorwriteenable(1, 1, 1, 1);	
}


var _bg_layer = layer_get_id("Background");
var _bg_layer2 = layer_get_id("Background2");
layer_script_begin(_bg_layer, BGbegin);
layer_script_end(_bg_layer2, BGend);
